#!/usr/bin/env ruby
require File.dirname(__FILE__) + '/../config/boot'

Rails::Initializer.run do |config|
end
require 'servicio'

case ARGV[0]
  when "start"
    Servicio.iniciar
    
  when "stop"
    Servicio.detener
    
  when "reload"
    Servicio.detener
    Servicio.iniciar
    
  else
    system("echo Favor utilizar [ start ]/[ stop ]/[ reload ]")
end